package com.thingsgrid.common.constant;

/**
 * 功能说明：自定义异常响应码
 *
 * @author 李龙飞
 * @since 2019/8/22 18:19
 */
public enum ResponseCodeConstant {

	RESPONSE_SUCCESS(200,"操作成功"),
	DATAACCESS_ERROR(1001,"数据访问异常"),
	FILE_UPLOAD_ERROR(1002,"文件上传异常"),
	FILE_NULL(1003,"空文件");


	private Integer code;
	private String value;

	ResponseCodeConstant(Integer code, String value) {
		this.code = code;
		this.value = value;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
